package org.lib.data.user.controller;

import org.lib.data.user.api.dto.AddUserDTO;
import org.lib.data.user.api.feign.UserFeign;
import org.lib.data.user.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

import lombok.extern.slf4j.Slf4j;

@RestController
@Slf4j
public class UserController implements UserFeign {

	@Autowired
	private UserService userService;
	
	@Override
	public Long addUser(AddUserDTO dto) {
		// 入参校验，TODO
		log.info("添加用户开始");
		return userService.addUser(dto);
	}

}
